import http from "../api";

export const getEmail = (email: string) => {
  return http({
    url: "/user/email",
    method: "post",
    data: {
      email,
    },
  });
};

//注册
export const getRegister = (data: any) => {
  return http({
    url: "/user/register",
    method: "post",
    data,
  });
};

//登录
export const getLogin = (data: any) => {
  return http({
    url: "/user/login",
    method: "post",
    data,
  });
};

//自动登录
export const getAutoLogin = (data: any) => {
  return http({
    url: "/user/autoLogin",
    method: "post",
    data,
  });
};

//获取Logo
export const getLogo = () => {
  return http({
    url: "/user/logo",
    method: "get",
  });
};

//更新用户信息
export const getUpdateUser = (data: any) => {
  return http({
    url: "/user/update",
    method: "post",
    data,
  });
};
